<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="style.css" />  
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
function leave() {
location.replace('javascript.jsp');
}
</SCRIPT>

<BODY onUnload="leave()">
<h3>Exit Window Example</h3>

<br><h4>Option 1 - using history.back()</h4>
 <INPUT type="Button" name="button1" value="Back"
 onClick="history.back()">
 
<br><br><h4>Option 2 - using location.replace</h4> 
  <input type=button name="button2" Value="Close" onClick="leave()">
 
</BODY>
</HTML>

